package cn.xmy.demo01.service.impl;

import cn.xmy.demo01.dao.IconDao;
import cn.xmy.demo01.pojo.Icon;
import cn.xmy.demo01.service.IconService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.SQLException;
import java.util.List;
@Service
public class IconServiceImpl implements IconService {
    @Autowired
    IconDao iconDao;
    @Override
    public List<Icon> findHeader() throws SQLException, ClassNotFoundException {
        return iconDao.findHeader();
    }

    @Override
    public List<Icon> findWeapon() throws SQLException, ClassNotFoundException {
        return iconDao.findWeapon();
    }

    @Override
    public List<Icon> findRole() throws SQLException, ClassNotFoundException {
        return iconDao.findRole();
    }

    @Override
    public List<Icon> findAction() throws SQLException, ClassNotFoundException {
        return iconDao.findAction();
    }



}
